public class Test {

    public static void main(String[] args) {
        Queue queue = new Queue();

        queue.offer(1);
        queue.offer(1);
        queue.offer(1);
        queue.offer(1);
        queue.offer(1);


        System.out.println(queue.isEmpty());

        queue.peek();

        queue.poll();
        queue.poll();
        queue.poll();
        queue.poll();
        queue.poll();

        System.out.println(queue.isEmpty());

    }

}
